package com.idis.managerApp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by Ming on 2018/1/28.
 */

/**
 * 后台登录
 */
@Controller
public class LoginController {

    @GetMapping(value = {"/login"})
    public String login(Model model, String error){
        if(error!=null)
            model.addAttribute("msg","用户名或密码输入错误或没有权限进入");
        return "login";
    }

}
